﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Cisoft.IntegrationSystem.WebSystem.Login" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>熙软3G信息通登录</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/font.css" rel="stylesheet" type="text/css" />
    <link href="css/style_ts.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>

    <script type="text/javascript" src="js/jquery.blockUI.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
//            $('#btnCloseAll2').bind('click', function() {
//                $.unblockUI();
//            });
//            $('#btnConfirm3').bind('click', function() {
//                $.unblockUI();
//            });
//            $('#txtUser').blur(function() {
//                if ($.trim($(this).val()) == '') {
//                    $('#lblTS').html("<h4>用户名不能为空</h4>");
//                    $.blockUI({
//                        message: $('#Panel1'),
//                        css: {
//                            border: 'none',
//                            padding: '15px',
//                            backgroundColor: '',
//                            top: ($(window).height() - 250) / 2 + 'px',
//                            left: ($(window).width() - 500) / 2 + 'px'
//                        }
//                    });
//                    return false;
//                }
//            });
//            $('#txtPwd').blur(function() {
//                if ($.trim($(this).val()) == '') {
//                    $('#lblTS').html("<h4>密码不能为空</h4>");
//                    $.blockUI({
//                        message: $('#Panel1'),
//                        css: {
//                            border: 'none',
//                            padding: '15px',
//                            backgroundColor: '',
//                            top: ($(window).height() - 250) / 2 + 'px',
//                            left: ($(window).width() - 500) / 2 + 'px'
//                        }
//                    });
//                    return false;
//                }

//            });
//            $('#txtValidate').blur(function() {
//                if ($.trim($(this).val()) == '') {
//                    $('#lblTS').html("<h4>验证码不能为空</h4>");
//                    $.blockUI({
//                        message: $('#Panel1'),
//                        css: {
//                            border: 'none',
//                            padding: '15px',
//                            backgroundColor: '',
//                            top: ($(window).height() - 250) / 2 + 'px',
//                            left: ($(window).width() - 500) / 2 + 'px'
//                        }
//                    });
//                    return false;
//                }
//            });

//            $('#btnSumbit3').click(function() {
//                if (checkForm()) {
//                    $.get("LoginHandler.ashx?name=" + $('#txtUser').val() + "&pwd=" + $('#txtPwd').val() + "&code=" + $('#txtValidate').val(), function(msg) {
//                        $('#lblTS').html("<h4>" +  + "</h4>");
//                    });
//                }
//                else return;
//            });
        });
    </script>

    <script type="text/javascript">
//        function usernameFocus() {
//            document.getElementById('txtUser').focus();
//        }

//        function checkName() {
//            if ($.trim($('#txtUser').val()) == '') {
//                $('#lblTS').html("<h4>用户名不能为空</h4>");
////                $.blockUI({
////                    message: $('#Panel1'),
////                    css: {
////                        border: 'none',
////                        padding: '15px',
////                        backgroundColor: ''
////                    }
//                //                });
//                //$('#LinkButton2').click();
//                javascript:__doPostBack('LinkButton2', '');
//                return false;
//            }
//            else return true;
//        }

//        function checkPwd() {
//            if ($.trim($('#txtPwd').val()) == '') {
//                $('#lblTS').html("<h4>密码不能为空</h4>");
////                $.blockUI({
////                    message: $('#Panel1'),
////                    css: {
////                        border: 'none',
////                        padding: '15px',
////                        backgroundColor: ''
////                    }
//                //                });
//                //$('#LinkButton2').click();
//                javascript:__doPostBack('LinkButton2', '');
//                return false;
//            }
//            else return true;
//        }

//        function checkCode() {
//            if ($.trim($('#txtValidate').val()) == '') {
//                $('#lblTS').html("<h4>验证码不能为空</h4>");
////                $.blockUI({
////                    message: $('#Panel1'),
////                    css: {
////                        border: 'none',
////                        padding: '15px',
////                        backgroundColor: ''
////                    }
//                //                });
//                //$('#LinkButton2').click();
//                javascript:__doPostBack('LinkButton2', '');
//                return false;
//            }
//            else return true;
//        }

//        function checkForm() {
//            var result = false;
//            //return result = checkName()?(checkPwd()?(checkCode()?true:false):false):false;
//            result = checkName();
//            if (result) {
//                result = checkPwd();
//                if (result) {
//                    result = checkCode();
//                    if (result) {
//                        return true;
//                    } else return false;
//                } else return false;
//            }
//            else return false;
//            
//        }
    </script>

    <style type="text/css">
        .buttom1
        {
            width: 67px;
            height: 26px;
            border: 0px;
            background-color: transparent;
            background: url(Images/login/logina.jpg);
            background-repeat: no-repeat;
        }
        .loginwhitetext
        {
            font-size: 12px;
            color: #006CA4;
            text-decoration: none;
        }
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="Scriptmanager1" runat="server" EnableScriptGlobalization="true"
        EnableScriptLocalization="true">
    </asp:ScriptManager>
    
    
  <%--  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
        
       
    <div id="box">
        <!--[if !IE]>logo、标题区域开始<![endif]-->
        <div id="login_top">
            <img src="Images/3G/login_webtitle.jpg" width="375" height="80" /></div>
        <!--[if !IE]>logo、标题区域结束<![endif]-->
        <!--[if !IE]>主内容区域开始<![endif]-->
        <div id="main">
            <!--[if !IE]>主内容区域左部图片开始<![endif]-->
            <div id="login_left">
                <img src="Images/3G/pic_photo.gif" width="387" height="444" /></div>
            <!--[if !IE]>主内容区域右部开始<![endif]-->
            <div id="login_right">
                <!--[if !IE]>主内容右部登录标题区域开始<![endif]-->
                <div id="login_title">
                    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="center" valign="middle">
                                <img src="Images/3G/login_title.gif" width="340" height="41" />
                            </td>
                        </tr>
                    </table>
                </div>
                <!--[if !IE]>主内容右部登录控件区域开始<![endif]-->
                <div id="login_con">
                    <form id="form2" name="login_form" method="post" action="">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="40" height="40" align="left" valign="middle">
                                <img src="Images/3G/icon23.gif" width="29" height="27" />
                            </td>
                            <td width="75" align="left" valign="middle">
                                用户名：
                            </td>
                            <td align="left" valign="middle">
                                <span class="white13_bold">
                                    <%--<input type="text" style="width:190px; font-size:12px; font-weight:bold; color:#000000;" name="username" />--%>
                                    <asp:TextBox ID="txtUser" runat="server" border="0" Width="150px"></asp:TextBox>
                                </span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="用户名不能为空"
                                    ControlToValidate="txtUser"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="40" align="left" valign="middle">
                                <img src="Images/3G/icon24.gif" width="20" height="24" />
                            </td>
                            <td align="left" valign="middle">
                                密&nbsp;&nbsp;码：
                            </td>
                            <td align="left" valign="middle">
                                <span class="white13_bold">
                                    <%--<input type="password" style="width:190px; font-size:12px; font-weight:bold; color:#000000;" name="password" />--%>
                                    <asp:TextBox ID="txtPwd" runat="server" TextMode="password" border="0" Width="150px"></asp:TextBox>
                                </span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="密码不能为空"
                                    ControlToValidate="txtPwd"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="40" align="left" valign="middle">
                                <img src="Images/3G/icon25.gif" width="27" height="23" />
                            </td>
                            <td align="left" valign="middle">
                                验证码：
                            </td>
                            <td align="left" valign="middle">
                                <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="115" align="left" valign="middle">
                                            <span class="white13_bold">
                                                <%--<input type="text" style="width:100px; font-size:12px; font-weight:normal; color:#000000;" name="yz" />--%>
                                                <asp:TextBox ID="txtValidate" runat="server" Width="80px" border="0"></asp:TextBox>
                                            </span>
                                        </td>
                                        <td align="left" valign="middle">
                                            <asp:Image runat="server" ID="ImageCheck" ImageUrl="ValidateCode.aspx"></asp:Image>
                                            <%--<img src="Images/3G/yzm.gif" />--%>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                                                runat="server" ErrorMessage="验证码不能为空" ControlToValidate="txtValidate"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <table width="400" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td height="50" align="center" valign="middle">
                                <%--<asp:ImageButton ID="btnSumbit3" ImageUrl="Images/3G/button_dl.gif" runat="server" OnClick="btnSumbit2_Click" OnClientClick="return checkForm();"/>--%>
                                    <asp:ImageButton ID="btnSumbit2" ImageUrl="Images/3G/button_dl.gif" runat="server" OnClick="btnSumbit2_Click"/>
                                    
                                    
                                <%--<input id="dl" type="submit" name="search" value="" onclick="logintable()" />--%>&nbsp;&nbsp;&nbsp;&nbsp;
                                <%--<input id="cz" type="submit" name="search2" value="" onblur="qingkong()" />--%>
                                <asp:ImageButton ID="btnReset2" ImageUrl="Images/3G/button_cz.gif" runat="server"
                                    OnClick="btnReset2_Click" CausesValidation="false" />
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="left" valign="middle" style="font-size: 12px; font-weight: normal;">
                                注：用户名yanshi 密码123456
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <font style="font-size: 12px; color: #2a5f81">&copy;&nbsp;2010 熙软3G信息通 V1.0 By Cisoft
                                    Inc.</font>
                            </td>
                        </tr>
                    </table>
                    </form>
                </div>
                <!--[if !IE]>主内容右部登录控件区域结束<![endif]-->
            </div>
            <!--[if !IE]>主内容右部登录标题区域结束<![endif]-->
        </div>
        <!--[if !IE]>主内容区域结束<![endif]-->
    </div>
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="LinkButton2"
        PopupControlID="Panel1" BackgroundCssClass="modalBackground" OnOkScript="onOk()"
        DropShadow="false" PopupDragHandleControlID="Panel2" CancelControlID="btnCloseAll2">
    </ajaxToolkit:ModalPopupExtender>
    <asp:Panel ID="Panel1" runat="server" Style="display: none; width: 26%; vertical-align: middle;">
        <div class="attention_delete">
            <asp:Panel ID="Panel2" runat="server" Style="vertical-align: middle;">
                <div class="attention_top">
                    <div class="attention_topleft">
                    </div>
                    <div class="attention_topmid_delete">
                        <table width="98%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="left" valign="middle" class="title">
                                    提示信息
                                </td>
                                <td align="right" valign="middle" width="30">
                                    <asp:Button ID="btnCloseAll2" runat="server" Text="" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="attention_topright">
                    </div>
                </div>
            </asp:Panel>
            <div class="attention_con">
                <asp:Panel ID="Panel3" runat="server">
                    <table border="1" runat="server" id="table2" cellpadding="5" cellspacing="0" bordercolor="#0e62a7"
                        style="width: 100%; text-align: center; border-collapse: collapse;">
                        <tr>
                            <td style="text-align: Center">
                                <asp:Label ID="lblTS" runat="server" Text=""></asp:Label>
                                <asp:Button ID="btnConfirm3" runat="server" ToolTip="确定" Style="display: none" />
                            </td>
                        </tr>
<%--                        <tr>
                            <td align="center" class="navi_link">
                                <asp:Button ID="btnConfirm3" runat="server" ToolTip="确定" Style="diplay: none" />
                            </td>
                        </tr>--%>
                    </table>
                </asp:Panel>
            </div>
        </div>
    </asp:Panel>
    <asp:LinkButton ID="LinkButton2" runat="server" Visible="true"></asp:LinkButton>
    
     <%--</ContentTemplate>
    </asp:UpdatePanel>--%>
    </form>
</body>
</html>
